package com.ag.lwc.dao;

import java.util.List;

import com.ag.bean.TbCtiIp;
import com.ag.dao.TbCtiIpDAO;

public class ServIPDAO extends TbCtiIpDAO{
	
	/**
	 * 返回CTI服务器ip
	 * @return
	 */
	public String getServIP()
	{
		String ServIP=null;
		List<TbCtiIp> serve =  this.findAll();		
//		if(serve!=null&&serve.size()==1)
		if(serve!=null)
			ServIP = serve.get(0).getA();
		return ServIP;
	}

}
